import request from '@/utils/request'

// 查询重调度模型参数配置列表
export function listReschedulingparameter(query) {
  return request({
    url: '/rescheduling/reschedulingparameter/list',
    method: 'get',
    params: query
  })
}

// 查询重调度模型参数配置详细
export function getReschedulingparameter(agentname) {
  return request({
    url: '/rescheduling/reschedulingparameter/' + agentname,
    method: 'get'
  })
}

// 新增重调度模型参数配置
export function addReschedulingparameter(data) {
  return request({
    url: '/rescheduling/reschedulingparameter',
    method: 'post',
    data: data
  })
}

// 修改重调度模型参数配置
export function updateReschedulingparameter(data) {
  return request({
    url: '/rescheduling/reschedulingparameter',
    method: 'put',
    data: data
  })
}

// 删除重调度模型参数配置
export function delReschedulingparameter(agentname) {
  return request({
    url: '/rescheduling/reschedulingparameter/' + agentname,
    method: 'delete'
  })
}
